<?php

namespace app\common\model;

//平台对小程序开通及短信付费的模型

class OrderModel extends CommonModel {

    protected  $name = 'order';

    protected  $pk   = 'order_id';

    //小程序续费
    const TYPE_MINIPROGRAME = 1;
    //短信充值
    const TYPE_SMS = 2;
    //线下续费
    const TYPE_OFFLINE = 3;
    //激活码续费
    const TYPE_ACTIVECODE = 4;
    //服务项目购买
    const TYPE_SERVICE_PROJECT = 5;


    public function order_type()
    {
        $orderType = [
            self::TYPE_MINIPROGRAME => '小程序续费',
            self::TYPE_SMS => '短信充值',
            self::TYPE_OFFLINE => '线下续费',
            self::TYPE_ACTIVECODE => '激活码续费',
            self::TYPE_SERVICE_PROJECT => '服务项目购买',
        ];

        return $orderType;
    }

}

